MarqueeView

open class MarqueeView : View, RevelControl, DownloadFeedTask2.OnCompleted, DownloadFileTask2.OnCompleted, DownloadTwitterTask.OnCompleted, FilenameFilter, Runnable

A custom View that displays horizontally scrolling text and images, commonly known as a "marquee" or "ticker".

This view renders a continuous stream of content items, which can include text generated from various sources (plain text, RSS feeds, Twitter feeds) and images. These items are typically separated by a "bullet" image. The MarqueeView handles the downloading of necessary assets (such as text rendered as images, or external images), manages their lifecycle, and performs the scrolling animation.

It implements RevelControl for integration into a broader playback and content management system. It also implements various download completion listener interfaces (e.g., DownloadFeedTask2.OnCompleted, DownloadFileTask2.OnCompleted, DownloadTwitterTask.OnCompleted) to asynchronously load and react to new data.

The visual appearance and behavior, such as scrolling direction, speed, font, colors, and content sources, are configured through the Module data passed during construction and initialization.

See also

Module
Source

Constructors

Link copied to clipboard
constructor(context: Context, module: Module)
Constructs a new MarqueeView.

Functions

Link copied to clipboard
open fun accept(dir: File, filename: String): Boolean
Tests if a specified file should be included in a file list.
Link copied to clipboard
open fun dispose()
Cleans up resources used by the MarqueeView.
Link copied to clipboard
open fun getName(): String
Gets the unique name assigned to this control.
Link copied to clipboard
open fun getOptions(): Iterator<out Option>
Gets an iterator over the configuration s for this control.
Link copied to clipboard
open fun getPlaylist(): Playlist
Gets the associated with this control, if any.
Link copied to clipboard
open fun getType(): ModuleType
Gets the type of the underlying module or content associated with this control.
Link copied to clipboard
open fun getZIndex(): Int
Gets the Z-index (stacking order) of this control.
Link copied to clipboard
open fun initialize(module: Module)
Initializes the control with its associated module context.
Link copied to clipboard
open fun isAutoStart(): Boolean
Checks if this control is configured to start its operation automatically after #initialize(Module) initialization.
Link copied to clipboard
open fun isStarted(): Boolean
Checks if the control is currently in a started or active operational state.
Link copied to clipboard
open fun onDownloadFeedCompleted(feed: Feed)
Link copied to clipboard
open fun onDownloadFileCompleted(file: File)
Link copied to clipboard
open fun onDownloadTwitterCompleted(statusData: StatusData)
Link copied to clipboard
open fun run()
Link copied to clipboard
open fun setAutoStart(flag: Boolean)
Sets whether this control should start its operation automatically after #initialize(Module) initialization.
Link copied to clipboard
open fun start()
Starts or resumes the active operation of this control.
Link copied to clipboard
open fun stop()
Stops or pauses the active operation of this control.